home *** CD-ROM | disk | FTP | other *** search
- #ifndef _GOBJECTS_
- #define _GOBJECTS_
- #include <fstream.h>
- #include "types.h"
-
- class gobject {
- protected:
- BOOL holdimage;
- LONG length;
- LONG image_size;
- fstream inpcxfile, outpcxfile;
- USHORT ni;
- USHORT width,height;
- UCHAR ** image;
- LONG loadpcx(UCHAR imagenum);
- LONG setup();
- LONG writesetup();
- LONG writepcx(UCHAR imagenum);
- public:
- gobject(UCHAR imagenum = 1);
- LONG assigninfile(PCHAR filename,ULONG locate = 0);
- LONG assignoutfile(PCHAR filename, ULONG locate = 0);
- VOID Hold() {holdimage=TRUE;};
- virtual LONG load(UCHAR imagenum = 0);
- virtual LONG Write(UCHAR imagenum = 0);
- virtual void show(PUCHAR screen, SHORT screen_width, USHORT x, USHORT y, UCHAR imagenum=0);
- virtual void transparent_show(PUCHAR screen, SHORT screen_width, USHORT x, USHORT y, UCHAR imagenum=0);
- ~gobject();
- };
-
- #endif
-